﻿@{
    ViewBag.Title = "Index1";
}

<h2>Index1</h2>

<div class="block-button-menu-above">
	<a id="cmdCreateMapping" role="button" class="btn btn-small btn-success button-standard-width"><i class="icon-plus bigger-120"></i>เพิ่ม</a>
	@*@Html.ActionLink("เพิ่ม"
    , new { RegularId = Model.RegularId }
    , new { id = "cmdCreateMapping", role = "button", @class = "btn btn-small btn-success button-standard-width"})*@
</div>

<div id="modal" class="modal hide fade autosize" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="height:300px">
    @using (Html.BeginForm("Index", "ManageUser", FormMethod.Post, new { @class = "form-horizontal" }))
    {
        @Html.AntiForgeryToken()

        <div class="block-button-menu-above">
            @*@Html.ButtonViewAll()*@
            @Html.ButtonSubmit("xxx")
        </div>
    
        <div>
        @Html.ValidationSummary(true, ""/*KPIS.GERP.Models.Class.ValidateText.RequiredField*/, new { @class = "alert alert-error" })
			
			
							<iframe src="@Url.Action("Index2")" width="100%" height="400px" scrolling="yes"></iframe>
			

		</div>
    }
</div>

@section scripts{
	
	<script type="text/javascript">
		$(function() {

			var $modal = $('#modal');
			$('#cmdCreateMapping').on('click', function (e) {
				e.preventDefault();
				$modal.modal('show');//, function () { $(".chzn-select").chosen(); });
			});
		});
	</script>
}